class Solution(object):
    def trimMean(self, arr):
        arr = [6, 0, 7, 0, 7, 5, 7, 8, 3, 4, 0, 7, 8, 1, 6, 8, 1, 1, 2, 4, 8, 1, 9, 5, 4, 3, 8, 5, 10, 8, 6, 6, 1, 0, 6,
               10, 8, 2, 3, 4]
        arr.sort()
        n = len(arr)
        d_n = int(n * 0.05)
        if d_n == 0:
            return sum(arr) / n
        return sum(arr[d_n: - d_n]) / (n - 2 * d_n)

